/**
 * 
 */
package at.fhj.ase.util;

import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;
import java.sql.Connection;
import java.sql.SQLException;

/**
 * ASE10 - SS2011 
 * Project work Client Architecture and Design
 *  
 * @author Henning Diepold
 * @author Dieter Steiner
 */

public interface Login {
	boolean loginDefaultUser(final String username, final String password) throws SQLException, ClassNotFoundException, NoSuchAlgorithmException, UnsupportedEncodingException, IOException;
	Connection login(final String username, final String password) throws ClassNotFoundException, UnsupportedEncodingException, SQLException;
//	String mySQLPassword(final String plainText) throws UnsupportedEncodingException;
	String mySQLPassword(final String string) throws UnsupportedEncodingException;
	String calculateHashValue(final String string) throws IOException, NoSuchAlgorithmException, UnsupportedEncodingException;

}
